package com.springsecurity.beans;

import java.util.ArrayList;  
import java.util.List;  

import javax.annotation.PostConstruct;  

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;


@Controller
@Scope("request")
public class GalleriaBean {
	
	private List<String> images;  
	  
    private String effect = "fade";  
  
    @PostConstruct  
    public void init() {  
        images = new ArrayList<String>();  
  
        for(int i=1;i<=4;i++) {  
            images.add("img0" + i + ".jpg");  
        }  
    }  
  
    public List<String> getImages() {  
        return images;  
    }  
  
    public String getEffect() {  
        return effect;  
    }  
  
    public void setEffect(String effect) {  
        this.effect = effect;  
    }  
}  
    